package day05;

public class Demo02 {
    public static void main(String[] args) {
        int sum=1;
        for (int i = 1; i <= 8; i++) {
            sum*=i;
        }
        System.out.println("8的阶乘为"+sum);
    }
}
